" vim:ft=vim

Execute(Include base):
  source test/base_vader.vim

Execute(test-autoinsert):
  Log '# Set autoinsert to 0'
    FloatermNew --autoinsert=0 ls
    Assert IsInFloatermBuffer()

    if has('nvim')
      let g:floaterm_autoinsert = 0
      FloatermNew! ls
      AssertEqual 'n',mode()
    endif

  Log '# Set autoinsert to 1'
    FloatermNew --autoinsert=1 ls
    Assert IsInFloatermBuffer()

    let g:floaterm_autoinsert = 1
    FloatermNew! ls
    " FIXME
    " AssertEqual 'i',mode()

  FloatermKill!
  stopinsert
